<template>
  <section class="process-timeline-section">
    <h2>培训流程图</h2>
    <div class="">培训过程中各环节顺序、逻辑关系及操作步骤</div>

    <div class="timeline-container">
      <div class="timeline-wrapper">
        <!-- 时间轴主体 -->
        <div class="timeline-line">
          <!-- <div class="timeline-arrow"></div> -->
        </div>

        <!-- 时间点和内容 -->
        <div class="timeline-items">
          <div class="timeline-item">
            <div class="timeline-dot">
              <div class="inner-dot"></div>
            </div>
            <div class="timeline-content">入学报道</div>
          </div>

          <div class="timeline-item">
            <div class="timeline-dot">
              <div class="inner-dot"></div>
            </div>
            <div class="timeline-content" style="top: 70px">理论学习</div>
          </div>

          <div class="timeline-item">
            <div class="timeline-dot">
              <div class="inner-dot"></div>
            </div>
            <div class="timeline-content">实操学习</div>
            <div class="timeline-subcontent">
              <div class="subcontent-item">· 模拟器训练</div>
              <div class="subcontent-item">· 组装测试</div>
              <div class="subcontent-item">· 小飞机训练</div>
              <div class="subcontent-item">· 打飞机训练</div>
            </div>
          </div>

          <div class="timeline-item">
            <div class="timeline-dot">
              <div class="inner-dot"></div>
            </div>
            <div class="timeline-content" style="top: 70px">模拟考试</div>
          </div>

          <div class="timeline-item">
            <div class="timeline-dot">
              <div class="inner-dot"></div>
            </div>
            <div class="timeline-content">教官推荐考试</div>
          </div>

          <div class="timeline-item">
            <div class="timeline-dot">
              <div class="inner-dot"></div>
            </div>
            <div class="timeline-content">AOPA 考试</div>
          </div>
        </div>
      </div>
    </div>
  </section>
</template>

<script>
export default {
  name: "ProcessTimeline",
};
</script>

<style scoped>
.process-timeline-section {
  padding: 80px 0 170px;
  background: #f8f9fc;
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 600;
  color: #12192d;
  margin-bottom: 16px;
  line-height: 1.4;
}

.section-subtitle {
  text-align: center;
  font-size: 14px;
  color: #909399;
  margin-bottom: 80px;
  line-height: 1.4;
}

.timeline-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.timeline-wrapper {
  position: relative;
  padding: 40px 0 100px;
  margin-top: 60px;
}

.timeline-line {
  width: 100%;
  height: 48px;
  background: url("@/assets/index/line.png") no-repeat center center;
  background-size: 100% 100%;
  /* position: absolute;
  top: 50%;
  left: 0;
  right: 40px;
  height: 3px;
  background: #1664ff;
  transform: translateY(-50%);
  z-index: 1; */
}

.timeline-arrow {
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #1664ff;
}

.timeline-items {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -35px 20px;
  gap: 20px;
  z-index: 2;
}

.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background: #1664ff;
  border: 2px solid #1664ff;
  border-radius: 50%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

/* .inner-dot {
  width: 8px;
  height: 8px;
  background: #1664ff;
  border-radius: 50%;
} */

.timeline-content {
  position: absolute;
  top: -48px;
  font-size: 16px;
  color: #12192d;
  background: #ffffff;
  padding: 12px 24px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  font-weight: 500;
  transform: translateY(-50%);
}

.timeline-subcontent {
  position: absolute;
  top: 40px;
  text-align: left;
  color: #606266;
  font-size: 14px;
  line-height: 2;
  background: #ffffff;
  padding: 12px 20px;
  box-shadow: 0px 4px 60px 0px rgba(0, 69, 207, 0.08);
  border-radius: 12px;
}

.subcontent-item {
  white-space: nowrap;
  color: #606266;
}

@media (max-width: 768px) {
  .timeline-items {
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
  }

  .timeline-line {
    display: none;
  }

  .timeline-content {
    position: relative;
    top: 0;
    transform: none;
    margin: 20px 0;
  }

  .timeline-subcontent {
    position: relative;
    top: 0;
  }
}
</style>
